package com.dt.global.web.mar.repquery.impl;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.HibernateException;
import org.springframework.stereotype.Service;

import com.dt.global.entitys.bo.TWebCoreMien;
import com.dt.global.web.dao.repquery.RepQueryDao;
import com.dt.global.web.mar.repquery.RepQueryMar;
/**
 * 代表风采的查询的实现类
 * @author WJX
 *
 */
@SuppressWarnings("rawtypes")
@Service
public class RepQueryMarImpl implements RepQueryMar {
	@Resource
	private RepQueryDao repQueryDao;

	public List<TWebCoreMien> getTWebRepQuery(String channelId)
			throws HibernateException {
		try {
			return repQueryDao.getTWebRepQuery(channelId);
		} catch (HibernateException e) {
			e.printStackTrace();
			return null;
		}
	}

	public TWebCoreMien getTWebCoreArticleId(String articleId)
			throws HibernateException {
		try {
			return repQueryDao.getTWebCoreArticleId(articleId);
		} catch (HibernateException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public List<TWebCoreMien> getTWebCoreMienPid(String pid)
			throws HibernateException {
		try {
			return repQueryDao.getTWebCoreMienPid(pid);
		} catch (HibernateException e) {
			e.printStackTrace();
			return null;
		}
	}

}
